export const SYS_CONFIG = {
  USER_TOKEN: 'X-Token',
  LOCAL_USER_TOKEN: 'LOCAL_USER_TOKEN',
  LOGIN_TYPE: 0,//0（账号密码登录）， 1（手机号登录），
  API_PREFIX: '/api/eshop/admin',
  DEFAULT_AVATAR: 'https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png',
  SERVER_PORT: 9988,
};

export const FORM_ITEM_LAYOUT = {
  labelCol: {
    sm: {span: 24},
    md: {span: 5},
  },
  wrapperCol: {
    sm: {span: 24},
    md: {span: 19},
  },
};
export const AUDIT_QUERY_PARAM_VALUE = {
  ING: 0,
  PASS: 1,
  REFUSE: -1,
};

export const FORM_ITEM_LAYOUT1 = {
  labelCol: {
    sm: {span: 24},
    md: {span: 24},
  },
  wrapperCol: {
    sm: {span: 24},
    md: {span: 24},
  },
};

export const END_COLUMNS = [
  {
    title: '发布时间',
    dataIndex: 'gmtCreate',
    valueType: 'dateTime',
    width: 170,
    hideInSearch: true,
    hideInForm: true,
  }
]

export const REG_CODE = {
  EMAIL_OR_CELLPHONE: /^1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}$|(^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$)/,
  CELLPHONE: /^1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}$/,
  EMAIL: /^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/,
}

export const CODE_MESSAGE: Record<number, string> = {
  200: '服务器成功返回请求的数据。',
  201: '新建或修改数据成功。',
  202: '一个请求已经进入后台排队（异步任务）。',
  204: '删除数据成功。',
  400: '发出的请求有错误，服务器没有进行新建或修改数据的操作。',
  401: '用户没有权限（令牌、用户名、密码错误）。',
  403: '用户得到授权，但是访问是被禁止的。',
  404: '发出的请求针对的是不存在的记录，服务器没有进行操作。',
  406: '请求的格式不可得。',
  410: '请求的资源被永久删除，且不会再得到的。',
  422: '当创建一个对象时，发生一个验证错误。',
  500: '服务器发生错误，请检查服务器。',
  502: '网关错误。',
  503: '服务不可用，服务器暂时过载或维护。',
  504: '网关超时。',
};

export interface TableListItem {
  key: number;
  disabled?: boolean;
  href: string;
  avatar: string;
  name: string;
  owner: string;
  desc: string;
  callNo: number;
  status: string;
  updatedAt: Date;
  createdAt: Date;
  progress: number;
}

export interface TableListPagination {
  total: number;
  pageSize: number;
  current: number;
}

export interface TableListData {
  list: TableListItem[];
  pagination: Partial<TableListPagination>;
}

export interface ErrorField {
  name: string;
  errors: string[];
}

export interface TableListParams {
  status?: string;
  name?: string;
  desc?: string;
  key?: number;
  pageSize?: number;
  currentPage?: number;
  filter?: Record<string, any[]>;
  sorter?: Record<string, any>;
}

export const SYS_ENUMS = {
  RESOURCE_CLASSIFICATION: {
    TEMPLATE: {text: '模板', label: '模板', value: 'TEMPLATE'},
    WORKS: {text: '作品', label: '作品', value: 'WORKS'},
    MATERIAL: {text: '素材', label: '素材', value: 'MATERIAL'},
    ANIMATION: {text: '动画', label: '动画', value: 'ANIMATION'},
    OTHER: {text: '其他', label: '其他', value: 'OTHER'},
  },
  RESOURCE_PAYMENT_TYPE: {
    FREE: {text: '免费', label: '免费', color: 'green', value: 'FREE'},
    PAY: {text: '付费', label: '付费', color: 'blue', value: 'PAY'},
  },
  WELFARE_TYPE: {
    EXPERIENCE_MEMBER: {text: '体验会员', label: '体验会员', color: 'green', value: 'EXPERIENCE_MEMBER'},
  },
  RESOURCE_ASSOCIATED_TYPE: {
    WORKS: {text: '作品', label: '作品', color: 'blue', value: 'WORKS'},
    ARTICLE: {text: '文章', label: '文章', color: 'green', value: 'ARTICLE'},
  },
  RESOURCE_AUDIT_STATE: {
    ING: {text: '待审核', label: '待审核', color: 'blue', value: 'ING'},
    PASS: {text: '已通过', label: '已通过', color: 'green', value: 'PASS'},
    REFUSE: {text: '未通过', label: '未通过', color: 'red', value: 'REFUSE'},
  },
  APPLY_STATE: {
    FIRST_APPLY: {text: '首次申请', label: '首次申请', color: 'gray', value: 'FIRST_APPLY'},
    ADDED: {text: '增项申请', label: '增项申请', color: 'blue', value: 'ADDED'},
    PASS: {text: '审核通过', label: '审核通过', color: 'green', value: 'PASS'},
    REFUSE: {text: '审核拒绝', label: '审核拒绝', color: 'red', value: 'REFUSE'},
  },
  MARKETING_CONTENT_TYPE: {
    APP_CYCLE_IMAGE: {text: 'APP轮播', label: 'APP轮播', color: 'gray', value: 'APP_CYCLE_IMAGE'},
    PC_CYCLE_IMAGE: {text: 'PC轮播', label: 'PC轮播', color: 'green', value: 'PC_CYCLE_IMAGE'},
    ARTICLE: {text: '文章', label: '文章', color: 'red', value: 'ARTICLE'},
    RESOURCES: {text: '资源', label: '资源', color: 'red', value: 'RESOURCES'},
    WORKS: {text: '作品', label: '作品', color: 'red', value: 'WORKS'},
    WEB_VIEW: {text: 'WebView', label: 'WebView', color: 'red', value: 'WEB_VIEW'},
    HYPERLINKS: {text: '超链接', label: '超链接', color: 'red', value: 'HYPERLINKS'},
  },
  MARKETING_POSITION_TYPE: {
    APP_CYCLE_IMAGE: {text: 'APP轮播', label: 'APP轮播', color: 'gray', value: 'APP_CYCLE_IMAGE'},
    PC_CYCLE_IMAGE: {text: 'PC轮播', label: 'PC轮播', color: 'green', value: 'PC_CYCLE_IMAGE'},
    APP_RESOURCES: {text: 'APP资源位', label: 'APP资源位', color: 'red', value: 'APP_RESOURCES'},
  },
  RESOURCE_OPERATE: {
    RESOURCES_AUDIT: {text: '资源审核', label: '资源审核', color: 'blue', value: 'RESOURCES_AUDIT'},
    RESOURCES_ADD: {text: '资源添加', label: '资源添加', color: 'green', value: 'RESOURCES_ADD'},
    RESOURCES_MOD: {text: '资源更新', label: '资源更新', color: 'red', value: 'RESOURCES_MOD'},
    RESOURCES_UP: {text: '资源上架', label: '资源上架', color: 'green', value: 'RESOURCES_UP'},
    RESOURCES_DOWN: {text: '资源下架', label: '资源下架', color: 'yellow', value: 'RESOURCES_DOWN'},
  },

  TOPIC_STATUS: {
    UP: {text: '启用中', label: '启用中', color: 'green', value: 'UP'},
    DOWN: {text: '禁用中', label: '禁用中', color: 'gray', value: 'DOWN'},
  },
  RESOURCE_STATUS: {
    UP: {text: '上架', label: '上架', color: 'green', value: 'UP'},
    DOWN: {text: '下架', label: '下架', color: 'gray', value: 'DOWN'},
  },
  SELLING_STATE: {
    UP: {text: '上架', label: '上架', color: 'green', value: 'UP'},
    DOWN: {text: '下架', label: '下架', color: 'gray', value: 'DOWN'},
  },
  ENABLE_STATE: {
    OPEN: {text: '启用中', label: '启用', color: 'green', value: 'OPEN'},
    DISABLE: {text: '已禁用', label: '禁用', color: 'red', value: 'DISABLE'},
  },
  WORKS_NATURE: {
    ORIGINAL: {text: '原创', label: '原创', color: 'green', value: 'ORIGINAL'},
    COPY: {text: '临摹', label: '临摹', color: 'red', value: 'COPY'},
    SHARE: {text: '分享', label: '分享', color: 'red', value: 'SHARE'},
  },
  ASSOCIATED_TYPE: {
    RESOURCES: {text: '资源', label: '资源', color: 'green', value: 'RESOURCES'},
    WORKS: {text: '作品', label: '作品', color: 'red', value: 'WORKS'},
    ARTICLE: {text: '文章', label: '文章', color: 'red', value: 'ARTICLE'},
  },
  SEX: {
    unKnow: {text: '保密', label: '保密', color: 'green', value: 'unKnow'},
    male: {text: '男', label: '男', color: 'red', value: 'male'},
    female: {text: '女', label: '女', color: 'red', value: 'female'},
  },
  LEVEL: {
    0: {text: '无星设计师', label: '无星设计师', color: 'green', value: '0'},
    1: {text: '一星设计师', label: '一星设计师', color: 'green', value: '1'},
    2: {text: '二星设计师', label: '二星设计师', color: 'green', value: '2'},
    3: {text: '三星设计师', label: '三星设计师', color: 'green', value: '2'},
    4: {text: '四星设计师', label: '四星设计师', color: 'green', value: '2'},
    5: {text: '五星设计师', label: '五星设计师', color: 'green', value: '2'},
    6: {text: '六星设计师', label: '六星设计师', color: 'green', value: '2'},
    7: {text: '七星设计师', label: '七星设计师', color: 'green', value: '2'},
    8: {text: '八星设计师', label: '八星设计师', color: 'green', value: '2'},
    9: {text: '九星设计师', label: '九星设计师', color: 'green', value: '2'},
    10: {text: '十星设计师', label: '十星设计师', color: 'green', value: '2'},
    11: {text: '十一星设计师', label: '十一星设计师', color: 'green', value: '2'},
    12: {text: '十二星设计师', label: '十二星设计师', color: 'green', value: '2'},
  },
  COPYRIGHT_TYPE: {
    SIGN: {text: '署名', label: '署名', color: 'green', value: 'SIGN'},
    SIGN_NOT_DEDUCT: {text: '署名-禁止演绎', label: '署名-禁止演绎', color: 'red', value: 'SIGN_NOT_DEDUCT'},
    SIGN_NOT_BUSINESS: {text: '署名-非商业性使用', label: '署名-非商业性使用', color: 'red', value: 'SIGN_NOT_BUSINESS'},
    SIGN_NOT_BUSINESS_DEDUCT: {
      text: '署名-非商业性使用-禁止演绎',
      label: '署名-非商业性使用-禁止演绎',
      color: 'red',
      value: 'SIGN_NOT_BUSINESS_DEDUCT'
    },
    SIGN_NOT_BUSINESS_SAME_SHARE: {
      text: '署名-非商业性使用-相同方式共享',
      label: '署名-非商业性使用-相同方式共享',
      color: 'red',
      value: 'SIGN_NOT_BUSINESS_SAME_SHARE'
    },
    SIGN_SAME_SHARE: {text: '署名-相同方式共享', label: '署名-相同方式共享', color: 'red', value: 'SIGN_SAME_SHARE'},
    SIGN_AUTHOR_FORBID: {
      text: '版权归原作者所有-仅供学习交流-禁止商业/个人使用',
      label: '版权归原作者所有-仅供学习交流-禁止商业/个人使用',
      color: 'red',
      value: 'SIGN_AUTHOR_FORBID'
    },
  },
  ARTICLE_COPYRIGHT_TYPE: {
    WITHOUT_PERMISSION: {text: '未经许可禁止转载', label: '未经许可禁止转载', color: 'green', value: 'WITHOUT_PERMISSION'},
    DO_NOT_STATEMENT: {text: '不声明', label: '不声明', color: 'red', value: 'DO_NOT_STATEMENT'},
  },
  OPERATE_TYPE: {
    RESOURCES_AUDIT: {text: '资源审核', label: '资源审核', color: 'gray', value: 'RESOURCES_AUDIT'},
    RESOURCES_ADD: {text: '资源添加', label: '资源添加', color: 'green', value: 'RESOURCES_ADD'},
    RESOURCES_MOD: {text: '资源更新', label: '资源更新', color: 'red', value: 'RESOURCES_MOD'},
    RESOURCES_UP: {text: '资源上架', label: '资源上架', color: 'red', value: 'RESOURCES_UP'},
    RESOURCES_DOWN: {text: '资源下架', label: '资源下架', color: 'red', value: 'RESOURCES_DOWN'},
    RESOURCES_RECOMMEND_UP: {text: '资源设置推荐', label: '资源设置推荐', color: 'red', value: 'RESOURCES_RECOMMEND_UP'},
    RESOURCES_RECOMMEND_DOWN: {text: '资源取消推荐', label: '资源取消推荐', color: 'red', value: 'RESOURCES_RECOMMEND_DOWN'},

    DESIGNER_SUBMIT: {text: '设计师认证提交', label: '设计师认证提交', color: 'red', value: 'DESIGNER_SUBMIT'},
    DESIGNER_AUDIT: {text: '设计师审核', label: '设计师审核', color: 'red', value: 'DESIGNER_AUDIT'},
    IDENTITY: {text: '实名认证', label: '实名认证', color: 'red', value: 'IDENTITY'},

    WORKS_ADD: {text: '作品添加', label: '作品添加', color: 'gray', value: 'WORKS_ADD'},
    WORKS_MOD: {text: '作品更新', label: '作品更新', color: 'green', value: 'WORKS_MOD'},
    WORKS_DEL: {text: '作品删除', label: '作品删除', color: 'red', value: 'WORKS_DEL'},
    WORKS_AUDIT: {text: '作品审核', label: '作品审核', color: 'red', value: 'WORKS_AUDIT'},
    WORKS_SET_HEAD: {text: '作品置顶', label: '作品置顶', color: 'red', value: 'WORKS_SET_HEAD'},
    WORKS_CANCEL_HEAD: {text: '作品取消置顶', label: '作品取消置顶', color: 'red', value: 'WORKS_CANCEL_HEAD'},
    WORKS_RECOMMEND_UP: {text: '作品推荐', label: '作品推荐', color: 'red', value: 'WORKS_RECOMMEND_UP'},
    WORKS_RECOMMEND_DOWN: {text: '作品取消推荐', label: '作品取消推荐', color: 'red', value: 'WORKS_RECOMMEND_DOWN'},

    ARTICLE_ADD: {text: '文章新增', label: '文章新增', color: 'gray', value: 'ARTICLE_ADD'},
    ARTICLE_MOD: {text: '文章更新', label: '文章更新', color: 'green', value: 'ARTICLE_MOD'},
    ARTICLE_AUDIT: {text: '文章审核', label: '文章审核', color: 'red', value: 'ARTICLE_AUDIT'},
    ARTICLE_DEL: {text: '文章删除', label: '作文章删除', color: 'red', value: 'ARTICLE_DEL'},
    ARTICLE_SET_HEAD: {text: '文章置顶', label: '文章置顶', color: 'red', value: 'ARTICLE_SET_HEAD'},
    ARTICLE_CANCEL_HEAD: {text: '文章取消置顶', label: '文章取消置顶', color: 'red', value: 'ARTICLE_CANCEL_HEAD'},
    ARTICLE_RECOMMEND_UP: {text: '文章推荐', label: '文章推荐', color: 'red', value: 'ARTICLE_RECOMMEND_UP'},
    ARTICLE_RECOMMEND_DOWN: {text: '文章取消推荐', label: '文章取消推荐', color: 'red', value: 'ARTICLE_RECOMMEND_DOWN'},
  },
  PAYMENT_TYPE: {
    ALIPAY: {text: '支付宝', label: '支付宝', color: 'blue', value: 'ALIPAY'},
    WECHAT: {text: '微信支付', label: '微信支付', color: 'green', value: 'WECHAT'},
  },
  ORDER_STATUS: {
    CLOSE: {text: '已关闭', label: '已关闭', color: 'gray', value: 'CLOSE'},
    PENDING: {text: '支付中/待支付', label: '支付中/待支付', color: 'blue', value: 'PENDING'},
    CANCEL: {text: '交易取消', label: '交易取消', color: 'gray', value: 'CANCEL'},
    DOING: {text: '进行中', label: '进行中', color: 'blue', value: 'DOING'},
    SUCCESS: {text: '支付成功', label: '支付成功', color: 'green', value: 'SUCCESS'},
    AFTER_SALES: {text: '售后', label: '售后', color: 'red', value: 'AFTER_SALES'},
    REFUNDING: {text: '退款中', label: '退款中', color: 'red', value: 'REFUNDING'},
    REFUND_SUCCESS: {text: '退款完成', label: '退款完成', color: 'green', value: 'REFUND_SUCCESS'},
  },
  ORDER_TYPE: {
    SERVICE: {text: '服务订单', label: '服务订单', color: 'gray', value: 'SERVICE'},
    DEMAND: {text: '需求订单', label: '需求订单', color: 'blue', value: 'DEMAND'},
    RESOURCES: {text: '资源订单', label: '资源订单', color: 'red', value: 'RESOURCES'},
    COURSE: {text: '课程订单', label: '课程订单', color: 'yellow', value: 'COURSE'},
    SYSTEM: {text: '系统订单', label: '系统订单', color: 'green', value: 'SYSTEM'},
  },
  COURSE_DIFFICULTY: {
    START: {text: '入门', label: '入门', color: 'gray', value: 'START'},
    PROGRESS: {text: '进阶', label: '进阶', color: 'blue', value: 'PROGRESS'},
    ADVANCED: {text: '高级', label: '高级', color: 'red', value: 'ADVANCED'},
  },
  CIRCLE_STATE: {
    OPEN: {text: '打开', label: '打开', color: 'green', value: 'OPEN'},
    DISABLE: {text: '关闭', label: '关闭', color: 'gray', value: 'DISABLE'},
  },
  CIRCLE_TYPE: {
    SIMPLE: {text: '普通', label: '普通', color: 'blue', value: 'SIMPLE'},
    COURSE: {text: '课程', label: '课程', color: 'green', value: 'COURSE'},
  },
  MEMBER_TYPE: {
    FORMAL_1: {text: '月度会员', label: '月度会员', color: 'yellow', value: 'FORMAL_1'},
    FORMAL_3: {text: '季度会员', label: '季度会员', color: 'blue', value: 'FORMAL_3'},
    FORMAL_12: {text: '年度会员', label: '年度会员', color: 'green', value: 'FORMAL_12'},
    TRY: {text: '体验', label: '体验', color: 'gray', value: 'TRY'},
  },
  CONTENT_TYPE: {
    NOTHING: {text: '什么都不做，仅展示', label: '什么都不做，仅展示', color: 'green', value: 'NOTHING'},
    JUMP_PAGE: {text: '跳转页面', label: '跳转页面', color: 'red', value: 'JUMP_PAGE'},
    NOTICE: {text: '公告', label: '公告', color: 'gray', value: 'NOTICE'},
    WEB_VIEW: {text: '自建富文本页面', label: '自建富文本页面', color: 'blue', value: 'WEB_VIEW'},
    MAIL: {text: '邮件', label: '邮件', color: 'yellow', value: 'MAIL'},
  },
  JUMP_TYPE: {
    RESOURCES: {text: '资源', label: '资源', color: 'green', value: 'RESOURCES'},
    WORKS: {text: '作品', label: '作品', color: 'red', value: 'WORKS'},
    ARTICLE: {text: '文章', label: '文章', color: 'red', value: 'ARTICLE'},
    HYPERLINK: {text: '超链接', label: '超链接', color: 'red', value: 'HYPERLINK'},
    RESOURCES_SPECIAL: {text: '资源专题', label: '资源专题', color: 'red', value: 'RESOURCES_SPECIAL'},
  },
  DEMAND_STATUS: {
    FINISH: {text: '交易完成', label: '交易完成', color: 'green', value: 'FINISH'},
    WAIT_RECEIVE: {text: '待接收', label: '待接收', color: 'blue', value: 'WAIT_RECEIVE'},
    WAIT_ACCEPT: {text: '待接单', label: '待接单', color: 'blue', value: 'WAIT_ACCEPT'},
    AUDITING: {text: '待审核', label: '待审核', color: 'blue', value: 'AUDITING'},
    DESIGNING: {text: '设计中', label: '设计中', color: 'blue', value: 'DESIGNING'},
    AUDIT_FAIL: {text: '审核失败', label: '审核失败', color: 'red', value: 'AUDIT_FAIL'},
    CLOSE: {text: '超时关闭', label: '超时关闭', color: 'red', value: 'CLOSE'},
    CANCEL: {text: '取消', label: '取消', color: 'red', value: 'CANCEL'},
    PENDING: {text: '待支付', label: '待支付', color: 'blue', value: 'PENDING'},
    REFUNDING: {text: '退款中', label: '退款中', color: 'blue', value: 'REFUNDING'},
    REFUND_SUCCESS: {text: '退款完成', label: '退款完成', color: 'green', value: 'REFUND_SUCCESS'},
  },
  CASH_CHANNEL: {
    ALIPAY: {text: '支付宝', label: '支付宝', color: 'green', value: 'ALIPAY'},
    BANK_CARD: {text: '银行卡', label: '银行卡', color: 'blue', value: 'BANK_CARD'},
  },
  CASH_STATUS: {
    NONE: {text: '无', label: '无', color: 'gray', value: 'NONE'},
    CASHING: {text: '提现中', label: '提现中', color: 'blue', value: 'CASHING'},
    FINISH: {text: '完成', label: '完成', color: 'green', value: 'FINISH'},
    REFUSE: {text: '拒绝', label: '拒绝', color: 'red', value: 'REFUSE'},
  },
  DESIGN_TOOL: {
    WR_PPT_2010_LOW: {text: '微软PPT2010及以下版本', label: '微软PPT2010及以下版本', color: 'gray', value: 'WR_PPT_2010_LOW'},
    WR_PPT_2013OR2016: {text: '微软PPT2013/2016', label: '微软PPT2013/2016', color: 'blue', value: 'WR_PPT_2013OR2016'},
    WR_PPT_19OR21OR365: {
      text: '微软PPT2019/2021/office265',
      label: '微软PPT2019/2021/office265',
      color: 'green',
      value: 'WR_PPT_19OR21OR365'
    },
    JS_WPS: {text: '金山WPS', label: '金山WPS', color: 'red', value: 'JS_WPS'},
    PG_KEYNOTE: {text: '苹果keynote', label: '苹果keynote', color: 'red', value: 'PG_KEYNOTE'},
    OTHER: {text: '其他', label: '其他', color: 'red', value: 'OTHER'},
  },
  WORKING_RECORD_STATUS: {
    PENDING: {text: '待甲方付款', label: '待甲方付款', color: 'gray', value: 'PENDING'},
    FINISH: {text: '交易完成', label: '交易完成', color: 'blue', value: 'FINISH'},
    CLOSE: {text: '接单失败', label: '接单失败', color: 'green', value: 'CLOSE'},
    CANCEL: {text: '取消', label: '取消', color: 'green', value: 'CANCEL'},
    REFUND_SUCCESS: {text: '退款完成', label: '退款完成', color: 'green', value: 'REFUND_SUCCESS'},
    REFUNDING: {text: '退款中', label: '退款中', color: 'green', value: 'REFUNDING'},
    WAIT_RECEIVE: {text: '待交付', label: '待交付', color: 'green', value: 'WAIT_RECEIVE'},
    SER_DESIGN: {text: '样稿设计中', label: '样稿设计中', color: 'green', value: 'SER_DESIGN'},
    DEM_WAIT_ACCEPT: {text: '待甲方确认', label: '待甲方确认', color: 'green', value: 'DEM_WAIT_ACCEPT'},
    DEM_DEMO_DESIGN: {text: '样稿设计中', label: '样稿设计中', color: 'green', value: 'DEM_DEMO_DESIGN'},
    DEM_DRAFT_DESIGN: {text: '初稿设计中', label: '初稿设计中', color: 'green', value: 'DEM_DRAFT_DESIGN'},
    DESIGNING: {text: '设计中', label: '设计中', color: 'green', value: 'DESIGNING'},
    WAIT_ACCEPT: {text: '待接单', label: '待接单', color: 'green', value: 'WAIT_ACCEPT'},
  },
  PUSH_STATE: {
    INIT: {text: '初始化', label: '初始化', color: 'gray', value: 'INIT'},
    CANCEL: {text: '已取消', label: '已取消', color: 'orange', value: 'CANCEL'},
    DOING: {text: '执行中', label: '执行中', color: 'blue', value: 'DOING'},
    FINISH: {text: '完成', label: '完成', color: 'green', value: 'FINISH'},
    FAIL: {text: '失败', label: '失败', color: 'red', value: 'FAIL'},
  },
  PUSH_TYPE: {
    NOTICE: {text: '公告', label: '公告', color: 'gray', value: 'NOTICE'},
    J_PUSH: {text: '极光推送', label: '极光推送', color: 'orange', value: 'J_PUSH'},
  },
  NOTICE_CONTENT_TYPE: {
    INIT: {text: '初始化', label: '初始化', color: 'gray', value: 'INIT'},
    CANCEL: {text: '已取消', label: '已取消', color: 'orange', value: 'CANCEL'},
    DOING: {text: '执行中', label: '执行中', color: 'blue', value: 'DOING'},
    FINISH: {text: '完成', label: '完成', color: 'green', value: 'FINISH'},
    FAIL: {text: '失败', label: '失败', color: 'red', value: 'FAIL'},
  },
  USER_STRATEGY: {
    ALL: {text: '全部', label: '全部', color: 'gray', value: 'ALL'},
    SIMPLE_USER: {text: '非VIP', label: '非VIP', color: 'orange', value: 'SIMPLE_USER'},
    VIP_USER: {text: 'VIP会员', label: 'VIP会员', color: 'blue', value: 'VIP_USER'},
    ORIGINAL: {text: '原创', label: '原创', color: 'green', value: 'ORIGINAL'},
    RECOMMEND: {text: '推荐', label: '推荐', color: 'red', value: 'RECOMMEND'},
    CERTIFICATION: {text: '认证', label: '认证', color: 'red', value: 'CERTIFICATION'},
    CUSTOMIZE: {text: '定制', label: '定制', color: 'red', value: 'CUSTOMIZE'},
  },
  DESIGN_TYPE: {
    ORIGINAL: {text: '原创设计师', label: '原创设计师', color: 'green', value: 'ORIGINAL'},
    RECOMMEND: {text: '推荐设计师', label: '推荐设计师', color: 'Error', value: 'RECOMMEND'},
    CERTIFICATION: {text: '认证设计师', label: '认证设计师', color: 'Processing', value: 'CERTIFICATION'},
    CUSTOMIZE: {text: '定制设计师', label: '定制设计师', color: 'Warning', value: 'CUSTOMIZE'},
  },
  DESIGNER_STATUS: {
    CREATE: {text: '创建', label: '创建', color: 'blue', value: 'CREATE'},
    FREE: {text: '空闲', label: '空闲', color: 'yellow', value: 'FREE'},
    DOING: {text: '设计中', label: '设计中', color: 'green', value: 'DOING'},
  },
  BOOLEAN_ENUMS: {
    1: {text: '是', color: 'green', label: '是', value: 1},
    0: {text: '否', color: 'gray', label: '否', value: 0},
  },
  MESSAGE_TYPE: {
    CONTENT: {text: '内容', label: '内容',value: 'CONTENT'},
    IMAGE: {text: '[图片]', label: '[图片]',value: 'IMAGE'},
    FILE: {text: '[文件]', label: '[文件]', value: 'FILE'},
  },
  ROLE_ENUMS: {
    ADMIN: {text: '管理员', color: 'green', label: '管理员', value: 'ADMIN'},
    STUDENT: {text: '学生', color: 'gray', label: '学生', value: 'STUDENT'},
  },
  SEX_ENUMS: {
    MALE: {text: '男', label: '男',value: 'MALE'},
    FEMALE: {text: '女', label: '女',value: 'FEMALE'},
    UNKNOWN: {text: '未知', label: '未知', value: 'UNKNOWN'},
  },
  SUBJECT_ENUMS: {
    1: {text: '计算机一级', color: 'green', label: '计算机一级', value: '1'},
    2: {text: '计算机二级', color: 'gray', label: '计算机二级', value: '2'},
    3: {text: 'Python', color: 'gray', label: 'Python', value: '3'},
  },
  HARD_ENUMS: {
    SIMPLE: {text: '简单', label: '简单',value: 'MALE'},
    NORMAL: {text: '普通', label: '普通',value: 'FEMALE'},
    HARD: {text: '困难', label: '困难', value: 'UNKNOWN'},
    SUPER_HARD: {text: '非常困难', label: '非常困难', value: 'UNKNOWN'},
  },
  CORRECT_RESULT: {
    YES: {text: '回答正确', label: '回答正确',value: 'YES'},
    NO: {text: '回答错误', label: '回答错误',value: 'NO'},
  },
};
